package com.example.server1.controller;

import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/sv1")
public class Server1Cont {

    @RequestMapping("/s1/test1")
    public String tst1(@RequestParam("param") String param, HttpServletRequest request) {
        String s = request.getHeader("hd_tok");
     return param + "-server1-received" + "-header="+s;
    }



    @RequestMapping("/s1/test2")
    public String tst2(@RequestParam("param") String param, HttpServletRequest request) {
        return   "/s1/test2" ;
    }
}
